package com.mspbots.core.bot.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mspbots.core.AbstractBaseServiceImpl;
import com.mspbots.core.bot.mapper.TenantBotMapper;
import com.mspbots.core.bot.model.TenantBot;
import com.mspbots.core.bot.service.TenantBotService;
import org.springframework.stereotype.Service;

/**
 * com.mspbots.core.bot.service.impl.TenantBotImpl
 *
 * @author Jason
 * @date 2019/12/20
 **/
@Service
public class TenantBotImpl extends AbstractBaseServiceImpl<TenantBotMapper, TenantBot> implements TenantBotService {

    @Override
    public IPage<TenantBot> page(Page<TenantBot> page, TenantBot query) {
        return baseMapper.page(page, query);
    }

    @Override
    public TenantBot info(Long id) {
        TenantBot query = new TenantBot();
        query.setId(id);
        return baseMapper.info(query);
    }


}
